const api = require("../../../ws_micro_shop/utils/api.js");
const app = getApp();

Page({
  data: {
    attachment_url: app.siteInfo.attachment_url,
  },
  onLoad: function (options) {
    let opts = options || {};
    app.pageOnLoad(this);
    this.setData({ opts });
  },
  onShow: function () {
    let page = this;
    wx.showLoading({
      title: '加载中',
      mask: true,
    });
    app.ws_micro_shoprequest({
      url: api.user.member,
      method: 'POST',
      success: function (res) {
        wx.hideLoading();
        if (res.code === 0) {
          page.setData(res.data);
        }
      },
    });
  },
  memberEdit() {
    app.util.navigateTo("/ws_micro_shop_seller/pages/member/memberEdit/index");
  }
});
